package cn.learn.richtext;

import cn.learn.util.RestResponse;
import org.springframework.web.bind.annotation.*;

/**
 * @author huangyezhan
 * @version 1.0
 * @date 2020年08月30日21:20
 */
@RestController
public class RichTextController {

    @RequestMapping(value = "richText", method = RequestMethod.POST)
    public RestResponse richText(@RequestBody RichText richText) {

        System.out.println(richText.toString());

        return RestResponse.success("成功");
    }

    @PutMapping("update")
    public RestResponse update(@RequestBody RichText richText) {

        System.out.println(richText.toString());

        return RestResponse.success("成功");
    }


    @RequestMapping(value = "richTextVo", method = RequestMethod.POST)
    public RestResponse richTextVo(@RequestBody RichTextVo vo) {

        System.out.println(vo.toString());

        return RestResponse.success("成功");
    }


}
